﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Olympic_email_to_future.Module;
using Olympic_email_to_future.BLLFactory;
using Olympic_email_to_future.IBLL;
using Olympic_email_to_future.DALFactory;
using Olympic_email_to_future.IDAL;
using Olympic_email_to_future.DAL;


namespace FutureMeWeb
{
    public partial class readMail : System.Web.UI.Page
    {
        
        IMailBLL bll = BusinessFactory.CreateEmailBLL();
        MailInfo mail;
        
        protected void Page_Load(object sender, EventArgs e)
        {
            mail = bll.dogetMailInfoById(32);
            Response.Write(mail.mailContent);
            lbl_content.Text = mail.mailContent;
            lbl_subject.Text = mail.mailTitle;
        }
    }
}